package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author zxw
 * create 2016年3月7日 上午10:43:11
 */
@Entity
@Table(name="rcc_d_houseMeterCurrentData")
public class HouseMeterCurrentData {
	private int houseMeterId;
	private Boolean state;
	private Date equTime;
	private Date planTime;
	private Date readTime;
	private BigDecimal flow;
	private BigDecimal heat;
	private BigDecimal accFlow;
	private BigDecimal accHeat;
	private BigDecimal seasonHeat;
	private BigDecimal seasonFlow;
	private BigDecimal supplyTemperature;
	private BigDecimal returnTemperature;
	private BigDecimal temperatureDiff;
	private BigDecimal workTime;
	private Boolean isFault;
	private BigDecimal battery;
	private HouseMeter houseMeter;
	private Boolean isAlarm;
	private String alarmSettingIds;
	private String faultTypeIds;
	private String reason;

    @Id
    @Column(name = "houseMeterId", unique = true, nullable = false)
    public int gethouseMeterId() {
		return houseMeterId;
	}
	public void sethouseMeterId(int houseMeterId) {
		this.houseMeterId = houseMeterId;
	}
	@Column(name = "flow")
	public BigDecimal getFlow() {
		return flow;
	}
	@Column(name = "reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public void setFlow(BigDecimal flow) {
		this.flow = flow;
	}
	
	@Column(name = "heat")
	public BigDecimal getHeat() {
		return heat;
	}
	public void setHeat(BigDecimal heat) {
		this.heat = heat;
	}
	
	@Column(name = "accFlow")
	public BigDecimal getAccFlow() {
		return accFlow;
	}
	public void setAccFlow(BigDecimal accFlow) {
		this.accFlow = accFlow;
	}
	
	@Column(name = "accHeat")
	public BigDecimal getAccHeat() {
		return accHeat;
	}
	public void setAccHeat(BigDecimal accHeat) {
		this.accHeat = accHeat;
	}
	
	@Column(name = "seasonHeat")
	public BigDecimal getSeasonHeat() {
		return seasonHeat;
	}
	public void setSeasonHeat(BigDecimal seasonHeat) {
		this.seasonHeat = seasonHeat;
	}
	
	@Column(name = "seasonFlow")
	public BigDecimal getSeasonFlow() {
		return seasonFlow;
	}
	public void setSeasonFlow(BigDecimal seasonFlow) {
		this.seasonFlow = seasonFlow;
	}
	
	@Column(name = "supplyTemperature")
	public BigDecimal getSupplyTemperature() {
		return supplyTemperature;
	}
	public void setSupplyTemperature(BigDecimal supplyTemperature) {
		this.supplyTemperature = supplyTemperature;
	}
	
	@Column(name = "returnTemperature")
	public BigDecimal getReturnTemperature() {
		return returnTemperature;
	}
	public void setReturnTemperature(BigDecimal returnTemperature) {
		this.returnTemperature = returnTemperature;
	}
	
	@Column(name = "temperatureDiff")
	public BigDecimal getTemperatureDiff() {
		return temperatureDiff;
	}
	public void setTemperatureDiff(BigDecimal temperatureDiff) {
		this.temperatureDiff = temperatureDiff;
	}
	
	
	@Column(name = "workTime")
	public BigDecimal getWorkTime() {
		return workTime;
	}
	public void setWorkTime(BigDecimal workTime) {
		this.workTime = workTime;
	}
	
	@Column(name = "equTime")
	public Date getEquTime() {
		return equTime;
	}
	public void setEquTime(Date equTime) {
		this.equTime = equTime;
	}
	
	@Column(name = "planTime")
	public Date getPlanTime() {
		return planTime;
	}
	public void setPlanTime(Date planTime) {
		this.planTime = planTime;
	}
	
	@Column(name = "readTime")
	public Date getReadTime() {
		return readTime;
	}
	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	
	@Column(name = "state")
	public Boolean getState() {
		return state;
	}
	public void setState(Boolean state) {
		this.state = state;
	}
	
	@Column(name = "isFault")
	public Boolean getIsFault() {
		return isFault;
	}

	public void setIsFault(Boolean isFault) {
		this.isFault = isFault;
	}
	
	@Column(name = "battery")
	public BigDecimal getBattery() {
		return battery;
	}
	

	public void setBattery(BigDecimal battery) {
		this.battery = battery;
	}
	

	

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "houseMeterId",insertable=false,updatable=false)
	public HouseMeter getHouseMeter() {
		return houseMeter;
	}
	public void setHouseMeter(HouseMeter houseMeter) {
		this.houseMeter = houseMeter;
	}
	
	@Column(name = "isAlarm")
	public Boolean getIsAlarm() {
		return isAlarm;
	}
	public void setIsAlarm(Boolean isAlarm) {
		this.isAlarm = isAlarm;
	}
	@Column(name = "alarmSettingIds")
	public String getAlarmSettingIds() {
		return alarmSettingIds;
	}

	public void setAlarmSettingIds(String alarmSettingIds) {
		this.alarmSettingIds = alarmSettingIds;
	}

	
	@Column(name = "faultTypeIds")
	public String getFaultTypeIds() {
		return faultTypeIds;
	}

	public void setFaultTypeIds(String faultTypeIds) {
		this.faultTypeIds = faultTypeIds;
	}


}
